MakeArray (x, ...)

Basic and Crystal syntax.

Array (x,...) and MakeArray are equivalent functions. However, Array cannot be used in Crystal syntax since it is a keyword for declaring array variables in that syntax.

Arguments

The given arguments are array elements with which to initialize the array. The number of array elements can be any number between 1 and 1000. All the arguments must be of the same type.

Returns

Array of values.

Action

MakeArray creates an array, initializes it with the given array elements and returns it.

Typical use

To create and initialize an array variable, especially in Basic syntax.

In Crystal syntax, you can use the square bracket notation for arrays instead.

Example

The following example is applicable to Crystal syntax:

Local NumberVar Array x := MakeArray (1, 1000, 10, 100, 10);

Creates and initializes an array x with five Number elements: 1, 1000, 10, 100, 10.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com